﻿using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace HRMService
{
    
    [ServiceContract(Namespace = "http://HRMService")]
    public interface ICLanguage
    {
        [OperationContract]
        CLanguageInfo CLanguage_GetInfo(int CLanguageID);

        [OperationContract]
        DataSet CLanguage_GetList(out int ItemCount, int CandidateID, int currentPage, int pageSize);

        [OperationContract]
        int CLanguage_Insert(CLanguageInfo eInfo);

        [OperationContract]
        bool CLanguage_Update(CLanguageInfo eInfo);

        [OperationContract]
        bool CLanguage_Delete(int CLanguageID);

        [OperationContract]
        bool CLanguage_Exist(int CLanguageID, int CandidateID, string CLanguageNo);
    }
    [DataContract(Namespace = "http://HRMService")]
    public class CLanguageInfo
    {
        #region VARIABLES

        int _ID;
        int _CandidateID;
        string _Name;
        string _SelfRating;
        string _CommentsOfInterview;

        #endregion

        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        [DataMember]
        public int CandidateID
        {
            get { return _CandidateID; }
            set { _CandidateID = value; }
        }
        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
        [DataMember]
        public string SelfRating
        {
            get { return _SelfRating; }
            set { _SelfRating = value; }
        }
 
        [DataMember]
        public string CommentsOfInterview
        {
            get { return _CommentsOfInterview; }
            set { _CommentsOfInterview = value; }
        }

    }

}
